package com.baiyang.server.service.article;


import com.baiyang.server.model.article.ArticleReadNum;
import com.baiyang.server.service.BaseService;

import java.util.List;

public interface ArticleReadNumService extends BaseService<ArticleReadNum> {

    /**
     * @apiNote 获取阅读数量排行前i文章的id
     * @param i
     * @return
     */
    List<String> getTop(int i);

    /**
     * 获取总阅读量
     * @param id
     * @return
     */
    Integer selectAllNum(String id);
}
